package com.cartoonrabbit.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author LiuTeng
 * @since 2023-01-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_user")
@ApiModel(value="User对象", description="")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "微信openId")
    @TableId("open_id")
    @JsonIgnore
    private String openId;

    @ApiModelProperty(value = "用户昵称")
    @TableField("nick_name")
    private String nickName;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "头像")
    @TableField("avatar_url")
    private String avatarUrl;

    @ApiModelProperty(value = "余额")
    private Long balance;

    @ApiModelProperty(value = "冻结余额")
    @TableField("block_balance")
    private Long blockBalance;

    @ApiModelProperty(value = "未清余额")
    @TableField("outstand_balance")
    private Long outstandBalance;

    @ApiModelProperty(value = "制作次数")
    @TableField("product_times")
    private Integer productTimes;

    @ApiModelProperty(value = "邀请人数")
    @TableField("invite_people_num")
    private Integer invitePeopleNum;

    @ApiModelProperty(value = "是否禁用")
    @TableField("is_enable")
    private Integer isEnable;

    @ApiModelProperty(value = "是否是新人")
    @TableField("is_new")
    private Integer isNew;

    @ApiModelProperty(value = "角色")
    private String role;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime createTime;


}
